import { http } from '@/utils/http/axios';

export function pageAlarmRecord(data = {}) {
  return http.request({
    url: '/admin/wip/alarmRecord/page',
    method: 'post',
    data,
  });
}

export function updateAlarmRecord(data = {}) {
  return http.request({
    url: '/admin/wip/alarmRecord/update',
    method: 'post',
    data,
  });
}

export function delAlarmRecord(data = {}) {
  return http.request({
    url: '/admin/wip/alarmRecord/delete',
    method: 'post',
    data,
  });
}

export function addAlarmRecord(data = {}) {
  return http.request({
    url: '/admin/wip/alarmRecord/add',
    method: 'post',
    data,
  });
}

export function getAlarmRecordByOrderCode(data = {}) {
  return http.request({
    url: '/admin/wip/alarmRecord/byOrderCode',
    method: 'post',
    data,
  });
}

export function exportAlarmRecord(data) {
  return http.request({
    url: '/admin/wip/alarmRecord/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
}
